﻿ 
    <div class="flexrow divtitle">
        <div style="width:20px;"></div>
        <div style="color: \#40b4e4;width:20px;">
            <i class="fa fa-circle"></i>
        </div>
        <div style="width:100px;font-weight:bold;">基本信息  </div>
        <div style="flex:1;">
            <a id="btnEdit" style="cursor:pointer;" title="修改" onclick="Edit()"><i class="fa fa-lg fa-pencil"></i></a>


            <span style="margin-left:10px;">当前状态：#:RunState#</span>
            <a id="btnStart" style="cursor:pointer;margin-left:10px;color:green;" title="启动" onclick="StartSim('#:Id#')"><i class="fa fa-lg fa-play"></i></a>

            <a id="btnStop" style="cursor:pointer;margin-left:10px;color:red;" title="停止" onclick="StopSim('#:Id#')"><i class="fa fa-lg fa-stop"></i></a>


        </div>
        <div style="width:20px;">
           
        </div>
    </div>

    <div style="height:10px;"></div>
    <div class="flexrow">
        <div class="tdLabel75  ">采集器名称</div>
        <div class="tdValue">

            <input class="k-textbox" value="#:Name#" readonly="readonly" />
        </div>
        <div style="width:20px;"></div>
    </div>

    <div class="flexrow">
        <div class="tdLabel75   ">协议名称</div>
        <div class="tdValue">

            <input class="k-textbox" value="#:ProtocolName#" readonly="readonly" />
        </div>
        <div style="width:20px;"></div>
    </div>

    <div class="flexrow">
        <div class="tdLabel75   ">采集方式</div>
        <div class="tdValue">

            <input class="k-textbox" value="#:Mode#" readonly="readonly" />
        </div>
        <div style="width:20px;"></div>
    </div>
    #if(Mode=="串口"){#
    <div id="divCK">
        <!-- 新增串口配置部分 -->
        <div class="flexrow">
            <div class="tdLabel75">串口选择</div>
            <div class="tdValue">

                <input class="k-textbox" value="#:ComPort#" readonly="readonly" />
            </div>
            <div style="width:20px;"></div>
        </div>

        <div class="flexrow">
            <div class="tdLabel75">波特率</div>
            <div class="tdValue">

                <input class="k-textbox" value="#:BaudRate#" readonly="readonly" />

            </div>
            <div style="width:20px;"></div>
        </div>

        <div class="flexrow">
            <div class="tdLabel75">校验方式</div>
            <div class="tdValue">

                <input class="k-textbox" value="#:Parity#" readonly="readonly" />
            </div>
            <div style="width:20px;"></div>
        </div>

        <div class="flexrow">
            <div class="tdLabel75">数据位</div>
            <div class="tdValue">

                <input class="k-textbox" value="#:DataBits#" readonly="readonly" />
            </div>
            <div style="width:20px;"></div>
        </div>

        <div class="flexrow">
            <div class="tdLabel75">停止位</div>
            <div class="tdValue">

                <input class="k-textbox" value="#:StopBits#" readonly="readonly" />


            </div>
            <div style="width:20px;"></div>
        </div>
        <!-- 结束串口配置部分 -->
    </div>
    #}else{# 
    <div id="divIP">
         
        <div class="flexrow">
            <div class="tdLabel75">IP</div>
            <div class="tdValue">
                <input class="k-textbox" value="#:IP#" readonly="readonly" />

            </div>
            <div style="width:20px;"></div>
        </div>


        <div class="flexrow">
            <div class="tdLabel75">端口</div>
            <div class="tdValue">
                <input class="k-textbox" value="#:Port#" readonly="readonly" />

            </div>
            <div style="width:20px;"></div>
        </div>
    </div>
 #}#
 

 

